<?php
class db_db
	{
		public static function db_con()
		{
    		$con = array
    				(
    				"host" => "localhost",
    				"port" => "3306",
    				"username" => "root",
    				"password" => "password",
    				"dbname" => "spexplus"
    				);
    	$db = new Zend_Db_Adapter_Pdo_Mysql($con);	
    	return $db;
    	
		}
		public static function categoryGroup($categoryGroupId = 1) {
			//If 0 is passed as the parameter then it's intended
			//to be used as the navigation and should be passed 
			//the entire category group - If anything else is passed
			//then pass the categories associated with the group requested
			
			$categoryGroup = array(1=>array('Computer Systems'=>array(4871,4873,4876))
								  ,2=>array('Printers'=>array(4805,4822,4810,10280,4821))
								  ,3=>array('Networking'=>array(5153,4813,10243,4801,10053)));
			if($categoryGroupId == 0){
				return $categoryGroup;
			}
			else 
			{
				 
					foreach($categoryGroup[$categoryGroupId] as $groupName=>$categoryIds){
						$categories = implode(',',$categoryIds);
					}
				return $categories;
			}
		}
	}
?>